/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __8ACF5157_591D_4A69_937D_CD58A2556FDA__
#define __8ACF5157_591D_4A69_937D_CD58A2556FDA__

namespace net
{

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // 
    // 
    // 消息定义 : MSG_TYPE_NET
    // 
    enum enumNetMsg
    {
        NET_BEGIN,

        // release : tcp and udp
        NET_RELEASE_CONNECT,

        // tcp
        NET_TCP_INIT_SERVER,
        NET_TCP_ACCEPT,
        NET_TCP_CONNECT,
        NET_TCP_RECV,
        NET_TCP_SEND,
        NET_TCP_SHUTDOWN,
        NET_TCP_CLOSE,

        // udp
        NET_UDP_INIT_SERVER,
        NET_UDP_RECV,
        NET_UDP_SEND,
        NET_UDP_SHUTDOWN,
        NET_UDP_CLOSE,

        // main
        NET_STARTTING,
        NET_START,
        NET_START_FAILED,
        NET_RUNNING,
        NET_STOPPING,
        NET_STOP,
        NET_STOPPED,
        NET_HEART,
        NET_QUIT,

        NET_END
    };

}

#endif // __8ACF5157_591D_4A69_937D_CD58A2556FDA__
